import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'

//原版代码
ReactDOM.createRoot(document.getElementById('root')).render(
  //React的Stric模式,会出现组件重复渲染的情况。作用是帮助开发者发现应用的潜在问题
  <React.StrictMode>
    <App />
  </React.StrictMode>,
)


//const result = ReactDOM.createRoot(document.getElementById('root'))
//console.log(result, typeof(result))
//let returnValue = Object.keys(result)
//console.log(returnValue, typeof(returnValue))
//returnValue = Object.getOwnPropertyNames(result)
//console.log(returnValue, typeof(returnValue))
//for (let key in result) {
//  if (key === "render") {
//    console.log(key)
//    break
//  } else {
//    continue
//  }
//}
//result.render(
//  <React.StrictMode>
//    <App />
//  </React.StrictMode>,
//)
